<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>login_result</title>
</head>
<jsp:useBean id="sd" class="uiux4.SessionData" scope="session"/>
<body>
	<%
		String mid = request.getParameter("mid");
		String pw = request.getParameter("pw");
		String flag = request.getParameter("flag");	
		String url = request.getParameter("url");
	
		if(mid!=null && pw!=null)
		{
			%>
			<jsp:setProperty property="mid" name="sd" value="<%=mid %>"/>
			<%
			
		}
		if(flag!=null && flag.equals("logout"))
		{
			%>
			<jsp:setProperty property="mid" name="sd" value=""/>
			<%
		}
		//현재페이지를 지정된 페이지로 변경
	%>
	<Script>
		url = 'main.jsp?'+ '<%=url%>';
		location.href = url;
	</Script>
</body>
</html>